﻿

using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Interfaces.Process;
/// <summary>
/// Process处理入口，可以注入XTDbContext访问数据库，注入IServerMainManager访问设备数据
/// </summary>
public interface IServerMainProcess
{
    string ProcessName { get; set; }
    /// <summary>
    /// 启动
    /// </summary>
    /// <returns></returns>
    Task<bool> Run();
    /// <summary>
    /// 停止
    /// </summary>
    /// <returns></returns>

    Task<bool> Stop();

   
}
